﻿using System;
using EmailJabber.Logic.Commands.Base;
using EmailJabber.Logic.Logic.BusinessLogic;

namespace EmailJabber.Logic.Commands
{
	public class ActivateCommandsFromAssembly:CommandBase
	{
		

		protected override string GetDecription()
		{
			return "Load commands from assembly";
		}

		protected override Guid GetId()
		{
			return new Guid("FAF818E5-195D-4668-A325-1D3BEFC2FBA2");
		}

		protected override void ExecuteSafe(MessageIM comnd)
		{
			string result =BL.Instance.ExtractCommndsFromAssembly(comnd.Body);
			BL.Instance.SendMessageToAdmin(result);
		}
	}
}
